package com.backend_pay.service;

import com.backend_pay.dao.TypeIncomeDao;
import com.backend_pay.entity.TypeIncome;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service //服务层，业务层
public class TypeIncomeService {
    @Autowired
    TypeIncomeDao typeIncomeDao;

    public List<TypeIncome> findAllType(){
        return typeIncomeDao.findAll();
    }
}
